package com.platform.qujia.dao;


import com.platform.qujia.pojo.ReductionOilRelations;

import java.util.List;

/**
 * 立减活动和油品关系Mapper接口
 * 
 * @author qujia
 * @date 2021-11-02
 */
public interface ReductionOilRelationsMapper 
{
    /**
     * 查询立减活动和油品关系
     * 
     * @param activityOilId 立减活动和油品关系ID
     * @return 立减活动和油品关系
     */
    public ReductionOilRelations selectReductionOilRelationsById(Long activityOilId);

    /**
     * 查询立减活动和油品关系列表
     * 
     * @param reductionOilRelations 立减活动和油品关系
     * @return 立减活动和油品关系集合
     */
    public List<ReductionOilRelations> selectReductionOilRelationsList(ReductionOilRelations reductionOilRelations);

    /**
     * 新增立减活动和油品关系
     * 
     * @param reductionOilRelations 立减活动和油品关系
     * @return 结果
     */
    public int insertReductionOilRelations(ReductionOilRelations reductionOilRelations);

    /**
     * 修改立减活动和油品关系
     * 
     * @param reductionOilRelations 立减活动和油品关系
     * @return 结果
     */
    public int updateReductionOilRelations(ReductionOilRelations reductionOilRelations);

    /**
     * 删除立减活动和油品关系
     * 
     * @param activityOilId 立减活动和油品关系ID
     * @return 结果
     */
    public int deleteReductionOilRelationsById(Long activityOilId);

    /**
     * 批量删除立减活动和油品关系
     * 
     * @param activityOilIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteReductionOilRelationsByIds(Long[] activityOilIds);

    List<ReductionOilRelations> query(ReductionOilRelations reductionOilRelations);
}
